var React = require('react');
var ReactDOM = require('react-dom');
import PcIndex from './components/pc_index'
import MobileIndex from './components/mobileindex'
import 'antd/dist/antd.css'; 
import { Button } from 'antd';
import MediaQuery from 'react-responsive'
class Root extends React.Component{
	render() {
		return (
			<div>
				<MediaQuery query="(min-device-width: 1224px)">
					<PcIndex></PcIndex>
				</MediaQuery>
				<MediaQuery query="(max-device-width: 1224px)">
					<MobileIndex></MobileIndex>
				</MediaQuery>
			</div>
		);
	}
}
ReactDOM.render(<Root/>,document.getElementById('example'));
